package com.atguigu.lease.common.context;

public class LoginUserContext {
    public static final
    ThreadLocal<LoginUser> threadLocal = new ThreadLocal<>();
    public static void setUser(LoginUser loginUser) {
        threadLocal.set(loginUser);
    }
    public static LoginUser getUser() {
        return threadLocal.get();
    }
    public static void removeUser() {
        threadLocal.remove();
    }
}
